package com.example.shixun.service.impl;

import com.example.shixun.dao.PostRlyDao;
import com.example.shixun.pojo.PostReply;
import com.example.shixun.service.PostRlyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PostRlyServiceImpl implements PostRlyService {
    @Autowired
    PostRlyDao postRlyDao;

    @Override
    public Integer save(PostReply postReply) {
        return postRlyDao.save(postReply);
    }

    @Override
    public List<PostReply> findByPostId(Integer id) {
        return postRlyDao.findByPostId(id);
    }
}
